import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:slidetwo/routes/puzzle_route.dart';

void main() {
  var targetPlatform = defaultTargetPlatform;
  if (targetPlatform == TargetPlatform.macOS ||
      targetPlatform == TargetPlatform.linux ||
      targetPlatform == TargetPlatform.windows) {}
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: '迷雾方块',
      theme: ThemeData(
        fontFamily: 'chuchen',
        appBarTheme: const AppBarTheme(color: Color(0xFF13B9FF)),
        colorScheme: ColorScheme.fromSwatch(
          accentColor: const Color(0xFF13B9FF),
        ),
      ),
      home: const PuzzlePage(),
      // home: const TopPage(),
    );
  }
}
